﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DAL;
using System.Data;
using Entity.Table;

namespace BLL.Db
{
    public class CheckLedgerManager
    {
         /// <summary>
        /// 添加一条总帐信息
        /// </summary>
        /// <param name="ledger">总帐数据实体</param>
        /// <returns></returns>
        public static bool Insert(TB_CheckLedger ledger)
        {
            return CheckLedgerDatabase.Insert(ledger);
        }

          /// <summary>
        /// 根据条件获取总帐信息。
        /// </summary>
        /// <param name="filter">过滤条件</param>
        /// <returns></returns>
        public static DataTable GetGeneralAccount(string bankCode,string businessDate, string startTime, string endTime)
        {
            return CheckLedgerDatabase.GetGeneralAccount(bankCode,businessDate, startTime, endTime);
        }
    }
}
